var home = '/HomeView.vue'
export const Routers = [
    {
        path: '',
        name: 'login',
        component: () => import('@/views/Login.vue')
    },
    {
        path: '/Login',
        name: 'Login',
        component: () => import('@/views/Login.vue')
    },
    // 动态添加路由
    {
        path: '/home',
        name: 'home',
        component: resolve => require(['@/views' + home], resolve),
        redirect:'/home/etc',  //默认显示路由路径
        children:[]
    },
    // 所有项目路由写这个children里(测试数据)
    {
        path: '/homes',
        name: 'homes',
        component: resolve => require(['@/views' + home], resolve),
        children:[
            {
                path: '/lol',
                name: 'lol',
                component: () => import('@/components/KevinModel/lol.vue')
            },
            {
                path: '/contentmanagement',  //汽车品牌
                name: 'contentmanagement',
                meta: { requiredAuth: true },
                component: () => import('@/components/hxy/ContentManagement.vue')
            },
            {
                path: '/car', //添加汽车品牌
                name: 'car',
                meta: { requiredAuth: true },
                component: () => import('@/components/hxy/AddCar.vue')
            },
            {
                path: '/shop', //4S店铺管理
                name: 'shop',
                meta: { requiredAuth: true },
                component: () => import('@/components/hxy/StoreManagement.vue')
            },
            {
                path: '/shopfs', //添加4S店
                name: 'shopfs',
                meta: { requiredAuth: true },
                component: () => import('@/components/hxy/AddfourSshop.vue')
            },
            {
                path: '/repair', //修理厂管理
                name: 'repair',
                meta: { requiredAuth: true },
                component: () => import('@/components/hxy/RepairFactory.vue')
            },
            {
                path: '/addrepair', //添加修理厂
                name: 'addrepair',
                meta: { requiredAuth: true },
                component: () => import('@/components/hxy/AddRepairFactory.vue')
            },
            {
                path: '/amendrepair',  //修改修理厂
                name: 'amendrepair',
                meta: { requiredAuth: true },
                component: () => import('@/components/hxy/AmendRepair.vue')
            },
            {
                path: '/amendfs',  //修改4s店
                name: 'amendfs',
                meta: { requiredAuth: true },
                component: () => import('@/components/hxy/AmendFs.vue')
            },
            {
                path: '/OrderManagement',
                name: 'OrderManagement',
                meta: { requiredAuth: true },
                // route level code-splitting
                // this generates a separate chunk (about.[hash].js) for this route
                // which is lazy-loaded when the route is visited.
                component: () => import('../components/weimei/OrderManagement.vue')
            },
            {
                path: '/OrderDetail',
                name: 'OrderDetail',
                meta: { requiredAuth: true },
                // route level code-splitting
                // this generates a separate chunk (about.[hash].js) for this route
                // which is lazy-loaded when the route is visited.
                component: () => import('../components/weimei/OrderDetails.vue')
            },
            {
                path: '/ExamineCarOrder',
                name: 'ExamineCarOrder',
                meta: { requiredAuth: true },
                // route level code-splitting
                // this generates a separate chunk (about.[hash].js) for this route
                // which is lazy-loaded when the route is visited.
                component: () => import('../components/weimei/ExamineCarOrder.vue')
            },
            {
                path: '/addOrder',
                name: 'addOrder',
                meta: { requiredAuth: true },
                // route level code-splitting
                // this generates a separate chunk (about.[hash].js) for this route
                // which is lazy-loaded when the route is visited.
                component: () => import('../components/weimei/addOrder.vue')
            },
            {
                path: '/licensed',
                name: 'licensed',
                meta: { requiredAuth: true },
                // route level code-splitting
                // this generates a separate chunk (about.[hash].js) for this route
                // which is lazy-loaded when the route is visited.
                component: () => import('../components/weimei/licensed.vue')
            },
            {
                path: '/lMark',
                name: 'lMark',
                meta: { requiredAuth: true },
                // route level code-splitting
                // this generates a separate chunk (about.[hash].js) for this route
                // which is lazy-loaded when the route is visited.
                component: () => import('../components/weimei/lMark.vue')
            },
            {
                path: '/offsiteDelegation',
                name: 'offsiteDelegation',
                meta: { requiredAuth: true },
                // route level code-splitting
                // this generates a separate chunk (about.[hash].js) for this route
                // which is lazy-loaded when the route is visited.
                component: () => import('../components/weimei/offsiteDelegation.vue')
            },
            {
                path: '/drivermanagement',
                name: 'drivermanagement',
                meta: { requiredAuth: true },
                component: () =>
                    import ('../components/user/DriverManagement.vue')
            },
            {
                path: '/creCorder',
                name: 'creCorder',
                meta: { requiredAuth: true },
                component: () =>
                    import ('../components/user/CreCorder.vue')
            },
            {
                path: '/addcrecorder',
                name: 'addcrecorder',
                meta: { requiredAuth: true },
                component: () =>
                    import ('../components/user/AddCrecorder.vue')
            },
            {
                path: '/adddriver',
                name: 'adddriver',
                meta: { requiredAuth: true },
                component: () =>
                    import ('../components/user/AddDriver.vue')
            },
            {
                path: '/modifydriver',
                name: 'modifydriver',
                meta: { requiredAuth: true },
                component: () =>
                    import ('../components/user/ModifyDriver.vue')
            },
            {
                path: '/modifyOwnercard',
                name: 'modifyOwnercard',
                meta: { requiredAuth: true },
                component: () =>
                    import ('../components/user/ModifyOwnerCard.vue')
            },
            {
                path: '/usermanagement',
                name: 'usermanagement',
                component: () => import('@/components/jcc/UserManagement.vue')
            },
            {
                path: '/adduser',
                name: 'adduser',
                component: () => import('@/components/jcc/AddUser.vue')
            },
            
            {
                path: '/AddCitys', //添加省份
                name: 'AddCitys',
                component: () => import('@/components/zzh/AddCitys.vue')
            },
        ]
    },

]
